#@ backend_layout()
<!-- Main content wrapper -->
#define content()
    <!-- Main content wrapper -->
    <div class="wrapper">
        <div class="statsRow">
            <div class="wrapper">
                <div class="controlB">
                    <ul>
                        <li><a href="/backend/option/add" title=""><img src="/bes/images/icons/control/32/plus.png"
                                                      alt=""/><span>新增Option</span></a></li>
                    </ul>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
        <!-- Static table -->
        <div class="widget">
            <div class="title"><img src="/bes/images/icons/dark/frames.png" alt="" class="titleIcon"/><h6>Option管理</h6>
                <h6><a href="/backend/option/index?groupId=1">产品属性</a></h6><h6><a href="/backend/option/index?groupId=2">系统属性</a></h6>
            </div>
            <table cellpadding="0" cellspacing="0" width="100%" class="sTable">
                <thead>
                    <tr>
                        <td>OptionKey</td>
                        <td>OptionValue</td>
                        <td>操作</td>
                    </tr>
                </thead>
                #for(option:optionList)
                    <tr>
                        <td>#(option.optionKey)</td>
                        <td>#(option.optionValue)</td>
                        <td>
                            <a title="" class="button blueB" style="margin: 5px;"
                               href="/backend/option/edit?id=#(option.id)"><span>修改</span></a>
                            <a title="" class="button blueB" style="margin: 5px;"
                               href="/backend/option/del?id=#(option.id)"><span>删除</span></a>
                        </td>
                    </tr>
                #end
            </table>
        </div>
    </div>
</div>
#end